
<button class="btn btn-primary" (click)="addSinglepage()">新增</button>

<table class="table">
    <thead class="thead-dark">
      <tr>
        <th scope="col">#</th>
        <th scope="col">标题</th>
        <th scope="col">描述</th>
        <th scope="col">图片</th>
        <th>操作</th>
      </tr>
    </thead>
    <tbody>
      <tr *ngFor="let s of sl" >
        <th scope="row">1</th>
        <td>{{s.title}}</td>
        <td>{{s.summary}}</td>
        <td>
            <img src="{{s.img}}" width="100%">
        </td>
        <td>
            <button class="btn btn-warning" (click)="updateSinglepage(s.singlepageid)">修改</button>
            <button class="btn btn-danger" (click)="deleteSinglepage(s.singlepageid)">删除</button>
        </td>
      </tr>
     
    </tbody>
  </table>
  